home *** CD-ROM | disk | FTP | other *** search
/ Workbench Designer 2 / Workbench Designer 2.iso / boot / boops!_v1.0 / boops!_install < prev    next >
Encoding:
Text File  |  1996-06-16  |  2.7 KB  |  73 lines

  1. ; Installer Script for BOops! V1.0
  2.  
  3. (set @options "")
  4. (set @commandline "c:BOops!")
  5. (set @default-dest "SYS:C/")
  6.  
  7. (set choice
  8.     (askchoice
  9.         (prompt "BOops! v1.0"
  10.                   " by Oops! demo division\n\n"
  11.                   "->Give your Amiga the cool boot she deserves!<-\n"
  12.           )
  13.         (help "Confused? Just click the \"Proceed\" button.\n\nYour selection here doesn't "
  14.                 "make any difference to the installation; we only wanted to show you the "
  15.                 "credits in a funny way.\n\n(It IS funny, don't you think?)")
  16.         (choices "Code.................Mentat"
  17.              "Music...............Prodigy"
  18.              "Graphics.............Radium"
  19.              "Installer.........Strawhead")
  20.         (default 0)
  21.     )
  22. )
  23.  
  24. (set startupchoice
  25.     (askchoice
  26.         (prompt "How do you want to install BOops! ?")
  27.         (help "Do you only want to copy BOops! to your C directory or do you want it to be executed after every reboot by putting it in"
  28.                 " your startup-sequence?\n\n(A line with c:Boops! will then be"
  29.                 " placed after your AddDataTypes entry, if you have any. "
  30.                 "Else, the installer will search for the SetPatch entry to do the same.)\n\n"
  31.              "Simple, isn't it?")
  32.                 
  33.         (choices     "Partial installation: Only copy main executable to C:"
  34.                 "Full installation: Install in startup-sequence as well.")
  35.         (default 1)
  36.     )
  37. )
  38.  
  39. (
  40.             (copyfiles
  41.                 (prompt "Copying BOops!")
  42.                 (help "")
  43.                 (source "c/BOops!")
  44.                 (dest "c:")
  45.             )
  46.             (if (= 1 startupchoice)
  47.             (
  48.             (if (NOT (run "C:Search s:startup-sequence #?boops PATTERN QUIET"))
  49.                 (
  50.                                (exit "BOops! was already found in the startup-sequence.")
  51.                 )
  52.             )
  53.             (if (NOT (run "C:Search s:startup-sequence #?AddDataTypes#? PATTERN QUIET"))
  54.                 (
  55.                     (run ("c/ModifyStartUp #?AddDataTypes#? \"%s\" AFTER" @commandline))
  56.                     (exit "Added line c:BOops! after your AddDataTypes entry.\n\n"
  57.                          "You terrible lamer!!! You could have done this MUCH faster by hand!\n\n"
  58.                                "Nothing went wrong, however.\nBeing a lamer has its advantages " 
  59.                                "now and then. :-)")
  60.                 )
  61.             )
  62.             (run ("c/ModifyStartUp #?SetPatch#? \"%s\" AFTER" @commandline))
  63.             (exit "AddDataTypes command not found, installed after SetPatch command.\n\n"
  64.                  "You terrible lamer!!! You could have done this MUCH faster by hand!\n\n"
  65.                      "Nothing went wrong, however.\nBeing a lamer has its advantages " 
  66.                      "now and then. :-)")
  67.             )
  68.         )
  69. )
  70. (exit "You damn bloody enormous lamer! You used an install script just to copy 1 (ONE!) file!!!?\n\n"
  71.       "You have to be nuts, because you will have to edit your"
  72.       " startup-sequence anyway, to be able to use BOops! ...")
  73.